Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@bosonprotocol/common
Advanced tools
Common configs, types, interfaces and utilities shared by the core components of the Boson Protocol.
@bosonprotocol/common
JS lib with common types, interfaces and utilities shared by the core components of the Boson Protocol.
npm install @bosonprotocol/common
# OR
yarn add @bosonprotocol/common
Useful ABIs can be imported.
import { abis } from "@bosonprotocol/common";
const { ProtocolDiamondABI } = abis;
We provide default configurations for multiple environments that can be used for easier interaction.
import { getDefaultConfig } from "@bosonprotocol/common";
const defaultConfigOnRopsten = getDefaultConfig("staging");
// {
// ...otherConfigParameters,
// subgraphUrl: "https://api.thegraph.com/subgraphs/name/bosonprotocol/ccropsten",
// contracts: {
// protocolDiamond: "0x5E3f5127e320aD0C38a21970E327eefEf12561E5"
// }
// }
Interfaces and types can also be imported. This might be useful for implementing custom a Web3LibAdapter
or MetadataStorage
.
import { Web3LibAdapter, MetadataStorage } from "@bosonprotocol/common";
class CustomWeb3LibAdapter implements Web3LibAdapter {
// implementation
}
class CustomMetadataStorage implements MetadataStorage {
// implementation
}
Web3LibAdapter
The core-sdk has the following features:
To achieve these, we use an adapter pattern with Web3LibAdapter
being the interface.
An example implementation is the EthersAdapter
targeting the ethers library.
FAQs
Common configs, types, interfaces and utilities shared by the core components of the Boson Protocol.
The npm package @bosonprotocol/common receives a total of 346 weekly downloads. As such, @bosonprotocol/common popularity was classified as not popular.
We found that @bosonprotocol/common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.